<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">

<f:view>
	<f:event listener="#{viewController.init}" type="preRenderComponent"></f:event>
	<h:head>
		<title>#{msgs.statement}</title>
		<h:outputStylesheet library="css" name="common.css" />
		<h:outputStylesheet library="css" name="master.css" />
		<script src="http://maps.google.com/maps/api/js?sensor=false"
			type="text/javascript"></script>
	</h:head>
	<h:body>
		<ui:remove>
			<h:form id="headerForm">
				<ui:include src="/components/public/user/toolBar.xhtml" />
				<p:dock position="top" halign="center">
					<p:menuitem value="User" url="#"
						icon="../resources/images/icons/system/dock/users.png" />
					<p:menuitem value="Role" url="#"
						icon="../resources/images/icons/system/dock/roles.png" />
					<p:menuitem value="Product" url="#"
						icon="../resources/images/icons/system/dock/products.png" />
					<p:menuitem value="Location" url="#"
						icon="../resources/images/icons/system/dock/dropOff1.png" />
					<p:menuitem value="Messages" url="#"
						icon="../resources/images/icons/system/dock/recipes.png" />
					<p:menuitem value="Picture" url="#"
						icon="../resources/images/icons/system/dock/pictures.png" />
					<p:menuitem value="Supplier" url="#"
						icon="../resources/images/icons/system/dock/news.png" />
					<p:menuitem value="Order" url="#"
						icon="../resources/images/icons/system/dock/messages.png" />
				</p:dock>
			</h:form>
		</ui:remove>
		<h:form id="dialogForm">
			<ui:include
				src="/components/public/shopping/shoppingCartDialog.xhtml" />
			<ui:include src="/components/public/user/loginDialog.xhtml" />
			<ui:include src="/components/public/product/productInfoDialog.xhtml" />
			<ui:include src="/components/public/myOrders/orderDialog.xhtml" />
			<ui:include
				src="/components/public/myOrders/orderDeleteConfirmDialog.xhtml" />
			<ui:include src="/components/public/other/pickupInfoMapDialog.xhtml" />

			<p:dialog modal="true" widgetVar="statusDialog" draggable="false"
				closable="false">
				<h:panelGrid columns="2">
					<h:graphicImage library="images" name="icons/system/globe32.gif" />
					<h:outputText value="#{msgs.processing}" style="color:green;"></h:outputText>
				</h:panelGrid>
			</p:dialog>
		</h:form>
		<div id="whole">
			<div id="logo" style="position: relative; float: left;">
				<h:form id="logoForm">
					<p:commandLink type="submit" action="#{ShoppingCart.goHome}">
						<h:graphicImage library="images" name="logo.png"
							style="height:60px;width:300px;border:0px;" />
					</p:commandLink>
				</h:form>
			</div>
			<div id="header" style="border: 1px">
				<ui:include src="/components/commons/header.xhtml" />
			</div>
			<div id="content">
				<ui:insert name="content">
				</ui:insert>
			</div>
			<div id="footer">
				<ui:insert name="footer">
					<ui:include src="/components/commons/footer.xhtml" />
				</ui:insert>

			</div>
		</div>

	</h:body>

</f:view>

</html>
